﻿using MediatR;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WMS.API.Application.Command.StocktakingManagement.OrderConfirmeds;
using WMS.Domain.Entities.StocktakingManagement;
using WMS.ErrorCode;

namespace WMS.API.Controllers.StocktakingManagement
{
    [Route("api/[controller]")]
    [ApiController]
    public class OrderConfirmedsController : ControllerBase
    {
        IMediator mediator;

        public OrderConfirmedsController(IMediator mediator)
        {
            this.mediator = mediator;
        }
        /// <summary>
        /// 查询待确认订单/已确认订单-xzc
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        [HttpGet]
        public Task<APIResult<List<OrderConfirmed>>> QueryOrderConfirmed([FromQuery]QueryOrderConfirmedsCommand request)
        {
            return mediator.Send(request);
        }
    }
}
